package com.wn.class30.service.impl;

import com.wn.class30.entity.JoinImgHead;
import com.wn.class30.mapper.JoinImgHeadDao;
import com.wn.class30.service.JoinImgHeadService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class JoinImgHeadServiceImpl implements JoinImgHeadService {
    @Resource
    private JoinImgHeadDao joinImgHeadDao;
    @Override
    public List<JoinImgHead> selectJoinImgHeads() throws Exception {
        return joinImgHeadDao.selectByExample(null);
    }

    @Override
    public void deleteImgHeads() throws Exception {
        joinImgHeadDao.deleteByExample(null);
    }

    @Override
    public void insertImgHead(JoinImgHead joinImgHead) throws Exception {
        joinImgHeadDao.insert(joinImgHead);
    }
}
